package com.bayihouse.service;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bayihouse.model.entity.FileInfo;
import com.bayihouse.model.request.file.FileSearchRequest;
import com.bayihouse.model.vo.FileVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Administrator
 * @description 针对表【fileinfo】的数据库操作Service
 * @createDate 2024-12-27 14:02:14
 */
public interface FileInfoService extends IService<FileInfo> {

    FileVO
    upload(MultipartFile multipartFile, String parentPath, String detail, String type, HttpServletRequest request) throws Exception;

    boolean download(FileInfo fileInfo, HttpServletResponse response);

    Wrapper<FileInfo> getQueryWrapper(FileSearchRequest fileSearchRequest);

    List<String> getDisplayUrls(List<Long> displayIds);
}
